package com.heneng.bluetoothdemo.dialog;

/**
 * Created by fengzimin  on  2019/11/18.
 * interface by
 */
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by Fernflower decompiler)
//


import android.app.Dialog;
import android.content.Context;
import android.widget.TextView;


import com.heneng.bluetoothdemo.R;

import androidx.annotation.NonNull;
import androidx.annotation.StringRes;

public class WaitingDialog extends Dialog {
    private final TextView mTvMessage;

    public WaitingDialog(@NonNull Context context) {
        super(context, R.style.WaitingDialog);
        this.setContentView(R.layout.dialog_waiting);
        this.mTvMessage = (TextView)this.findViewById(R.id.tv_message);
    }

    public static WaitingDialog newDialog(Context context) {
        return new WaitingDialog(context);
    }

    public WaitingDialog setMessage(@StringRes int resId) {
        this.mTvMessage.setText(resId);
        return this;
    }

    public WaitingDialog setMessage(CharSequence message) {
        this.mTvMessage.setText(message);
        return this;
    }
}

